package com.demo.ex01.entity;

import java.util.Date;

public class Event //表名
{
	//主键
	private Long id;		
	//列
	private String title;
	private Date date;
	
	// getter And setter
	public Long getId() {
		return id;
	}
	public String getTitle() {
		return title;
	}
	public Date getDate() {
		return date;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	@Override
	public String toString() {
		return "Event [id=" + id + ", title=" + title + ", date=" + date + "]";
	}

}
